<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib  prefix="html" uri="http://struts.apache.org/tags-html-el"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Modifica Gruppo</title>
<link href="css/images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript">
	function checkForm(){
		var form = document.getElementById('MyForm');
	
		if(form.codGruppo.value == ''){
			alert('inserire il COD_GRUPPO');
			return false;
			}
		if(form.descrizione.value == ''){
			alert('inserire la descrizione');
			return false;
			}
		return true;
	}
</script>
</head>
<body>
<jsp:include page="/header.jsp"></jsp:include>

<div id="sidebar">
	<jsp:include page="../menuAdmin.jsp"></jsp:include>
	<ul>		
		<li> <html:link href="PrepareHomeAdminAction.do">Amministrazione</html:link> </li>
		<li> <html:link href="PrepareCRUDGruppoAction.do?codOp=inserisci">Aggiungi Gruppo</html:link> </li>
	</ul>
</div>
<div id="content">
	<html:errors/>
	<h3>Modifica Gruppo</h3>
	${message }
	<div class="form_p">
		<html:form styleId="MyForm" action="ConfermaModificaGruppoAction" method="post">
			<div class="row">Codice:${GruppoForm.codGruppo }</div>
			<div class="row"><span class="label">Descrizione:</span><span
			class="formw"><html:text property="descrizione"></html:text></span></div>
			<html:hidden property="idGruppo"/>
			<html:hidden property="codGruppo"/>
			<html:hidden property="codOp"/>
			<div class="row"><html:reset/><html:submit value="Modifica" onclick="return checkForm();"></html:submit></div>
		</html:form>
		<div class="row">
		<html:form action="PrepareListaGruppoAction" method="post">
			<html:submit value="Annulla"></html:submit>
		</html:form></div>
	</div>
</div>
<jsp:include page="/footer.jsp"></jsp:include>
</body>
</html>